package com.ymh.spring;

public class Client6 {
	
	public static void main(String[] args) {
		Base base = new Base();
		base.fun(100, 50);
		
		Sub sub = new Sub();
//		sub.fun(100, 50);//编译不通过
	}

}

class Base{
	void fun(int price,int... discounts){
		System.out.println("Base...fun");
	}
	
}

class Sub extends Base{
	
	@Override
	void fun(int price, int[] discounts) {
		System.out.println("Sub...fun");
	}
	
}